package com.zfast.forge.constant;

import java.math.RoundingMode;

/**
 * 系统通用配置
 * @author zgn
 * @Description: SysConstant
 * @date 2024/2/29 0029
 */
public class SysConstant {
    //region 数值
    /**
     * 精准度
    */
    public static int scale=6;
    /**
     * 四舍五入
    */
    public static RoundingMode round_model=RoundingMode.HALF_UP;
    //endregion

    //region 单位
    //1m=100cm
    public static String length_unit="cm";
    //1s=1000ms
    public static String time_unit="ms";
    public static String speed_unit="cm/ms";
    public static String weight_unit="g";
    //endregion

    public static int game_format=1;//1:单;2:双
    public static int field_side=1;//1:左;2:右

    //
    public static double density=1.29;//空气密度Kg/m³
    //鸟类的空气阻力系数在0.1到0.2之间
    public static double dragCoefficient=0.2;//阻力系数
    public static double area=27 * Math.PI/100;//cm 物体的迎风面积 1/2×母线长×底面周长(C=2πr) 重量在4.74g到5.50g
    public static double mass=0.005;//羽毛球质量 5/1000
}
